package com.youfan.service;

import com.youfan.entity.YoufanProduct;
import com.youfan.re.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name = "yonshopredis", path = "redis")
public interface ProductServiceRedis {
    @PostMapping("updateProduct")
    @ResponseBody
    public Result<YoufanProduct> updateProduct(@RequestBody YoufanProduct youfanProduct);
}
